# coding: utf-8

from app.json.mysql.base import Base as BaseJson
from app.model.mysql.game import Game as GameModel


class Game(BaseJson):
    def __init__(self, model: GameModel):
        self.id = model.id
        self.title = model.title
        self.created_time = str(model.created_time)
        self.updated_time = str(model.updated_time)
        self.is_delete = model.is_delete
        self.rule = model.rule
